#ifndef WINDOWUTIL_H
#define WINDOWUTIL_H

#include <QWidget>
#include <QString>

class WindowUtil
{
public:
	//  Utils  不需要构造 给对应func就行 
	
	// 生命周期是全局
	static void setFramelessWithShadow(QWidget *window, int shadowRadius = 10);
	static void setTopMost(QWidget *window, bool topMost = true);
	static void moveWindowBelow(QWidget *window, QWidget *targetWindow);
	static void moveToScreenCenter(QWidget *window);
	static void adaptPlatformStyle(QWidget *window);
	static void adjustToSystemTheme(QWidget *window);
	static QWidget* getActiveWindow();

private:
	// 私有构造函数，防止实例化
    WindowUtil() = default;

	// 条件跨平台
	#ifdef Q_OS_WIN
	static void setWindowsShadow(QWidget *window, int shadowRadius);
	#elif Q_OS_LINUX
	static void setLinuxShadow(QWidget *window, int shadowRadius);
	#endif

};

#endif 		// WINDOWUTIL_H